const EntryPlugin = require('./EntryPlugin')

class EntryOptionPlugin {
  apply(complier) {
    complier.hooks.entryOption.tap('EntryOptionPlugin', (context, entry) => {
      new EntryPlugin(context, entry).apply(complier)
    })
  }
}

module.exports = EntryOptionPlugin
